package com.sailfish.springbootdemo.service.db1;

import java.util.Map;

public interface CommonJudgeCanDeleteService {

    /**
     * 检索所有的参与逻辑的key值，此类不允许删除，判断传入的key值在不在里面
     */
    Map<String, Integer> judgeKeyInLogic(String judgeKey) throws Exception;

    /**
     * 判断是否允许删除 设备资源，如果不允许删除，返回应用次数
     *
     * @return
     * @throws Exception
     */
    Integer judgeCanDeletePcbaDeviceResource(Integer pcbaDeviceResourceId) throws Exception;

    Map<String, Integer> judgeCanDeleteLineBaseBigType(Integer lineBaseBigTypeId) throws Exception;

    Map<String, Integer> judgeCanDeleteLineTechBigType(Integer lineBaseBigTypeId) throws Exception;

    Map<String, Integer> judgeCanDeleteLineBaseSmallType(Integer lineBaseSmallTypeId) throws Exception;

    Map<String, Integer> judgeCanDeleteLineTechSmallType(Integer lineBaseSmallTypeId) throws Exception;

    Map<String, Integer> judgeCanDeletePcbaDeviceType(Integer pcbaDeviceTypeId) throws Exception;

    Map<String, Integer> judgeCanDeleteBrand(Integer brandId) throws Exception;

    Map<String, Integer> judgeCanDeleteBrandType(Integer brandTypeId) throws Exception;

    Map<String, Integer> judgeCanDeletePcbaDeviceParamType(Integer pcbaDeviceParamTypeId) throws Exception;

    Map<String, Integer> judgeCanDeleteTechDeviceParamType(Integer techDeviceParamTypeId) throws Exception;

    Map<String, Integer> judgeCanDeletePcbaProcess(Integer pcbaProcessId) throws Exception;

    Map<String, Integer> judgeCanDeletePcbaCompany(Integer pcbaCompanyId) throws Exception;

    Map<String, Integer> judgeCanDeletePcbaWorkshop(Integer pcbaWorkshopId) throws Exception;

    Map<String, Integer> judgeCanDeleteRoadmapBigType(Integer roadmapBigTypeId) throws Exception;

    Map<String, Integer> judgeCanDeleteRoadmapSmallType(Integer roadmapSmallTypeId) throws Exception;

    Map<String, Integer> judgeCanDeletePcbaDeviceParam(String pcbaDeviceParamKey) throws Exception;

    Map<String, Integer> judgeCanDeleteTechDeviceParam(String techDeviceParamKey) throws Exception;
}
